package com.bwie.es.remote;

import com.bwie.common.domain.response.GoodsQueryRes;
import com.bwie.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(name = "bwie-goods")
public interface GoodsRemoteService {
    /**
     * 查所有(es用)
     * @return
     */
    @GetMapping("/goods/findAll")
    public Result<List<GoodsQueryRes>> findAll();
}
